package com.example.tests;

import java.io.File;
import java.io.FileReader;
import java.util.Properties;

import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeClass;

import com.example.fw.ApplicationManager;

public class TestBase {

   
    protected static ApplicationManager app;

    @BeforeClass
    public void setUp() throws Exception {
            String confgiFile = System.getProperty("configFile", "application.properties");
            Properties properties = new Properties();
            properties.load(new FileReader(new File(confgiFile)));
            app = new ApplicationManager(properties);
    }
   
    @AfterTest
    public void tearDown() throws Exception {
            app.stop();
    }

}
